package com.sinosoft.zyemr.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class PatientEntityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PatientEntityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andEhrIdIsNull() {
            addCriterion("EHR_ID is null");
            return (Criteria) this;
        }

        public Criteria andEhrIdIsNotNull() {
            addCriterion("EHR_ID is not null");
            return (Criteria) this;
        }

        public Criteria andEhrIdEqualTo(Integer value) {
            addCriterion("EHR_ID =", value, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdNotEqualTo(Integer value) {
            addCriterion("EHR_ID <>", value, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdGreaterThan(Integer value) {
            addCriterion("EHR_ID >", value, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("EHR_ID >=", value, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdLessThan(Integer value) {
            addCriterion("EHR_ID <", value, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdLessThanOrEqualTo(Integer value) {
            addCriterion("EHR_ID <=", value, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdIn(List<Integer> values) {
            addCriterion("EHR_ID in", values, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdNotIn(List<Integer> values) {
            addCriterion("EHR_ID not in", values, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdBetween(Integer value1, Integer value2) {
            addCriterion("EHR_ID between", value1, value2, "ehrId");
            return (Criteria) this;
        }

        public Criteria andEhrIdNotBetween(Integer value1, Integer value2) {
            addCriterion("EHR_ID not between", value1, value2, "ehrId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("Name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("Name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("Name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("Name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("Name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("Name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("Name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("Name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("Name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("Name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("Name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("Name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("Name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("Name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andPymIsNull() {
            addCriterion("PYM is null");
            return (Criteria) this;
        }

        public Criteria andPymIsNotNull() {
            addCriterion("PYM is not null");
            return (Criteria) this;
        }

        public Criteria andPymEqualTo(String value) {
            addCriterion("PYM =", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymNotEqualTo(String value) {
            addCriterion("PYM <>", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymGreaterThan(String value) {
            addCriterion("PYM >", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymGreaterThanOrEqualTo(String value) {
            addCriterion("PYM >=", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymLessThan(String value) {
            addCriterion("PYM <", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymLessThanOrEqualTo(String value) {
            addCriterion("PYM <=", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymLike(String value) {
            addCriterion("PYM like", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymNotLike(String value) {
            addCriterion("PYM not like", value, "pym");
            return (Criteria) this;
        }

        public Criteria andPymIn(List<String> values) {
            addCriterion("PYM in", values, "pym");
            return (Criteria) this;
        }

        public Criteria andPymNotIn(List<String> values) {
            addCriterion("PYM not in", values, "pym");
            return (Criteria) this;
        }

        public Criteria andPymBetween(String value1, String value2) {
            addCriterion("PYM between", value1, value2, "pym");
            return (Criteria) this;
        }

        public Criteria andPymNotBetween(String value1, String value2) {
            addCriterion("PYM not between", value1, value2, "pym");
            return (Criteria) this;
        }

        public Criteria andGenderIsNull() {
            addCriterion("Gender is null");
            return (Criteria) this;
        }

        public Criteria andGenderIsNotNull() {
            addCriterion("Gender is not null");
            return (Criteria) this;
        }

        public Criteria andGenderEqualTo(String value) {
            addCriterion("Gender =", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotEqualTo(String value) {
            addCriterion("Gender <>", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThan(String value) {
            addCriterion("Gender >", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThanOrEqualTo(String value) {
            addCriterion("Gender >=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThan(String value) {
            addCriterion("Gender <", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThanOrEqualTo(String value) {
            addCriterion("Gender <=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLike(String value) {
            addCriterion("Gender like", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotLike(String value) {
            addCriterion("Gender not like", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderIn(List<String> values) {
            addCriterion("Gender in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotIn(List<String> values) {
            addCriterion("Gender not in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderBetween(String value1, String value2) {
            addCriterion("Gender between", value1, value2, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotBetween(String value1, String value2) {
            addCriterion("Gender not between", value1, value2, "gender");
            return (Criteria) this;
        }

        public Criteria andBirthddayIsNull() {
            addCriterion("Birthdday is null");
            return (Criteria) this;
        }

        public Criteria andBirthddayIsNotNull() {
            addCriterion("Birthdday is not null");
            return (Criteria) this;
        }

        public Criteria andBirthddayEqualTo(Date value) {
            addCriterionForJDBCDate("Birthdday =", value, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayNotEqualTo(Date value) {
            addCriterionForJDBCDate("Birthdday <>", value, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayGreaterThan(Date value) {
            addCriterionForJDBCDate("Birthdday >", value, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("Birthdday >=", value, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayLessThan(Date value) {
            addCriterionForJDBCDate("Birthdday <", value, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("Birthdday <=", value, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayIn(List<Date> values) {
            addCriterionForJDBCDate("Birthdday in", values, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayNotIn(List<Date> values) {
            addCriterionForJDBCDate("Birthdday not in", values, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("Birthdday between", value1, value2, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBirthddayNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("Birthdday not between", value1, value2, "birthdday");
            return (Criteria) this;
        }

        public Criteria andBloodTypeIsNull() {
            addCriterion("BLOOD_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andBloodTypeIsNotNull() {
            addCriterion("BLOOD_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andBloodTypeEqualTo(String value) {
            addCriterion("BLOOD_TYPE =", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeNotEqualTo(String value) {
            addCriterion("BLOOD_TYPE <>", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeGreaterThan(String value) {
            addCriterion("BLOOD_TYPE >", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeGreaterThanOrEqualTo(String value) {
            addCriterion("BLOOD_TYPE >=", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeLessThan(String value) {
            addCriterion("BLOOD_TYPE <", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeLessThanOrEqualTo(String value) {
            addCriterion("BLOOD_TYPE <=", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeLike(String value) {
            addCriterion("BLOOD_TYPE like", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeNotLike(String value) {
            addCriterion("BLOOD_TYPE not like", value, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeIn(List<String> values) {
            addCriterion("BLOOD_TYPE in", values, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeNotIn(List<String> values) {
            addCriterion("BLOOD_TYPE not in", values, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeBetween(String value1, String value2) {
            addCriterion("BLOOD_TYPE between", value1, value2, "bloodType");
            return (Criteria) this;
        }

        public Criteria andBloodTypeNotBetween(String value1, String value2) {
            addCriterion("BLOOD_TYPE not between", value1, value2, "bloodType");
            return (Criteria) this;
        }

        public Criteria andContactPhoneIsNull() {
            addCriterion("Contact_Phone is null");
            return (Criteria) this;
        }

        public Criteria andContactPhoneIsNotNull() {
            addCriterion("Contact_Phone is not null");
            return (Criteria) this;
        }

        public Criteria andContactPhoneEqualTo(String value) {
            addCriterion("Contact_Phone =", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotEqualTo(String value) {
            addCriterion("Contact_Phone <>", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneGreaterThan(String value) {
            addCriterion("Contact_Phone >", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("Contact_Phone >=", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneLessThan(String value) {
            addCriterion("Contact_Phone <", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneLessThanOrEqualTo(String value) {
            addCriterion("Contact_Phone <=", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneLike(String value) {
            addCriterion("Contact_Phone like", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotLike(String value) {
            addCriterion("Contact_Phone not like", value, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneIn(List<String> values) {
            addCriterion("Contact_Phone in", values, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotIn(List<String> values) {
            addCriterion("Contact_Phone not in", values, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneBetween(String value1, String value2) {
            addCriterion("Contact_Phone between", value1, value2, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andContactPhoneNotBetween(String value1, String value2) {
            addCriterion("Contact_Phone not between", value1, value2, "contactPhone");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidIsNull() {
            addCriterion("Identify_CardID is null");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidIsNotNull() {
            addCriterion("Identify_CardID is not null");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidEqualTo(String value) {
            addCriterion("Identify_CardID =", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidNotEqualTo(String value) {
            addCriterion("Identify_CardID <>", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidGreaterThan(String value) {
            addCriterion("Identify_CardID >", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidGreaterThanOrEqualTo(String value) {
            addCriterion("Identify_CardID >=", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidLessThan(String value) {
            addCriterion("Identify_CardID <", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidLessThanOrEqualTo(String value) {
            addCriterion("Identify_CardID <=", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidLike(String value) {
            addCriterion("Identify_CardID like", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidNotLike(String value) {
            addCriterion("Identify_CardID not like", value, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidIn(List<String> values) {
            addCriterion("Identify_CardID in", values, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidNotIn(List<String> values) {
            addCriterion("Identify_CardID not in", values, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidBetween(String value1, String value2) {
            addCriterion("Identify_CardID between", value1, value2, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andIdentifyCardidNotBetween(String value1, String value2) {
            addCriterion("Identify_CardID not between", value1, value2, "identifyCardid");
            return (Criteria) this;
        }

        public Criteria andYibaoIdIsNull() {
            addCriterion("Yibao_ID is null");
            return (Criteria) this;
        }

        public Criteria andYibaoIdIsNotNull() {
            addCriterion("Yibao_ID is not null");
            return (Criteria) this;
        }

        public Criteria andYibaoIdEqualTo(String value) {
            addCriterion("Yibao_ID =", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdNotEqualTo(String value) {
            addCriterion("Yibao_ID <>", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdGreaterThan(String value) {
            addCriterion("Yibao_ID >", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdGreaterThanOrEqualTo(String value) {
            addCriterion("Yibao_ID >=", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdLessThan(String value) {
            addCriterion("Yibao_ID <", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdLessThanOrEqualTo(String value) {
            addCriterion("Yibao_ID <=", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdLike(String value) {
            addCriterion("Yibao_ID like", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdNotLike(String value) {
            addCriterion("Yibao_ID not like", value, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdIn(List<String> values) {
            addCriterion("Yibao_ID in", values, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdNotIn(List<String> values) {
            addCriterion("Yibao_ID not in", values, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdBetween(String value1, String value2) {
            addCriterion("Yibao_ID between", value1, value2, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andYibaoIdNotBetween(String value1, String value2) {
            addCriterion("Yibao_ID not between", value1, value2, "yibaoId");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeIsNull() {
            addCriterion("Feiyong_Type is null");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeIsNotNull() {
            addCriterion("Feiyong_Type is not null");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeEqualTo(String value) {
            addCriterion("Feiyong_Type =", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeNotEqualTo(String value) {
            addCriterion("Feiyong_Type <>", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeGreaterThan(String value) {
            addCriterion("Feiyong_Type >", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeGreaterThanOrEqualTo(String value) {
            addCriterion("Feiyong_Type >=", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeLessThan(String value) {
            addCriterion("Feiyong_Type <", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeLessThanOrEqualTo(String value) {
            addCriterion("Feiyong_Type <=", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeLike(String value) {
            addCriterion("Feiyong_Type like", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeNotLike(String value) {
            addCriterion("Feiyong_Type not like", value, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeIn(List<String> values) {
            addCriterion("Feiyong_Type in", values, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeNotIn(List<String> values) {
            addCriterion("Feiyong_Type not in", values, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeBetween(String value1, String value2) {
            addCriterion("Feiyong_Type between", value1, value2, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andFeiyongTypeNotBetween(String value1, String value2) {
            addCriterion("Feiyong_Type not between", value1, value2, "feiyongType");
            return (Criteria) this;
        }

        public Criteria andNowAddressIsNull() {
            addCriterion("NOW_ADDRESS is null");
            return (Criteria) this;
        }

        public Criteria andNowAddressIsNotNull() {
            addCriterion("NOW_ADDRESS is not null");
            return (Criteria) this;
        }

        public Criteria andNowAddressEqualTo(String value) {
            addCriterion("NOW_ADDRESS =", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressNotEqualTo(String value) {
            addCriterion("NOW_ADDRESS <>", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressGreaterThan(String value) {
            addCriterion("NOW_ADDRESS >", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressGreaterThanOrEqualTo(String value) {
            addCriterion("NOW_ADDRESS >=", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressLessThan(String value) {
            addCriterion("NOW_ADDRESS <", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressLessThanOrEqualTo(String value) {
            addCriterion("NOW_ADDRESS <=", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressLike(String value) {
            addCriterion("NOW_ADDRESS like", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressNotLike(String value) {
            addCriterion("NOW_ADDRESS not like", value, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressIn(List<String> values) {
            addCriterion("NOW_ADDRESS in", values, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressNotIn(List<String> values) {
            addCriterion("NOW_ADDRESS not in", values, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressBetween(String value1, String value2) {
            addCriterion("NOW_ADDRESS between", value1, value2, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNowAddressNotBetween(String value1, String value2) {
            addCriterion("NOW_ADDRESS not between", value1, value2, "nowAddress");
            return (Criteria) this;
        }

        public Criteria andNationIsNull() {
            addCriterion("NATION is null");
            return (Criteria) this;
        }

        public Criteria andNationIsNotNull() {
            addCriterion("NATION is not null");
            return (Criteria) this;
        }

        public Criteria andNationEqualTo(String value) {
            addCriterion("NATION =", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationNotEqualTo(String value) {
            addCriterion("NATION <>", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationGreaterThan(String value) {
            addCriterion("NATION >", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationGreaterThanOrEqualTo(String value) {
            addCriterion("NATION >=", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationLessThan(String value) {
            addCriterion("NATION <", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationLessThanOrEqualTo(String value) {
            addCriterion("NATION <=", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationLike(String value) {
            addCriterion("NATION like", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationNotLike(String value) {
            addCriterion("NATION not like", value, "nation");
            return (Criteria) this;
        }

        public Criteria andNationIn(List<String> values) {
            addCriterion("NATION in", values, "nation");
            return (Criteria) this;
        }

        public Criteria andNationNotIn(List<String> values) {
            addCriterion("NATION not in", values, "nation");
            return (Criteria) this;
        }

        public Criteria andNationBetween(String value1, String value2) {
            addCriterion("NATION between", value1, value2, "nation");
            return (Criteria) this;
        }

        public Criteria andNationNotBetween(String value1, String value2) {
            addCriterion("NATION not between", value1, value2, "nation");
            return (Criteria) this;
        }

        public Criteria andMarriageIsNull() {
            addCriterion("MARRIAGE is null");
            return (Criteria) this;
        }

        public Criteria andMarriageIsNotNull() {
            addCriterion("MARRIAGE is not null");
            return (Criteria) this;
        }

        public Criteria andMarriageEqualTo(Short value) {
            addCriterion("MARRIAGE =", value, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageNotEqualTo(Short value) {
            addCriterion("MARRIAGE <>", value, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageGreaterThan(Short value) {
            addCriterion("MARRIAGE >", value, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageGreaterThanOrEqualTo(Short value) {
            addCriterion("MARRIAGE >=", value, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageLessThan(Short value) {
            addCriterion("MARRIAGE <", value, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageLessThanOrEqualTo(Short value) {
            addCriterion("MARRIAGE <=", value, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageIn(List<Short> values) {
            addCriterion("MARRIAGE in", values, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageNotIn(List<Short> values) {
            addCriterion("MARRIAGE not in", values, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageBetween(Short value1, Short value2) {
            addCriterion("MARRIAGE between", value1, value2, "marriage");
            return (Criteria) this;
        }

        public Criteria andMarriageNotBetween(Short value1, Short value2) {
            addCriterion("MARRIAGE not between", value1, value2, "marriage");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}